import request from "@/utils/request";
// 留言相关API
const API = {
  GET_GUEST_BOOK: "/guestbook/getMsgList",  //获取留言列表
  ADD_GUEST_BOOK: "/guestbook/postMsg",  //添加留言
}

// 获取留言列表接口
export const reqGetGuestBook = (id) => request.get(API.GET_GUEST_BOOK + `?toId=${id}`);

// 添加留言接口
export const reqAddGuestBook = (data) => request.post(API.ADD_GUEST_BOOK, data);


